package com.cyou.qb.face.dao;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import com.cyou.qb.face.entity.OutService;
@Component("OutServiceFailDAO")
public class OutServiceFailDAO {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	public void saveOutServiceFail(OutService outService) {
		String sql = "INSERT INTO t_outservice_fail_log(call_service,target_object,target_type,memo,op_method,create_date) VALUES(?,?,?,?,?,?)";

		jdbcTemplate.update(
				sql,
				new Object[] { outService.getService(), outService.getObject(),
						outService.getType(), outService.getMemo(),
						outService.getMethod(), new Date()});
	}
}
